﻿
namespace UserDefinedForms.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.DesignForm"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class DesignFormEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the FormId property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFormId;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the FormId property.
		/// </summary>
		protected System.Windows.Forms.Label uxFormIdLabel;
		
		/// <summary>
		/// TextBox for the Name property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxName;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Name property.
		/// </summary>
		protected System.Windows.Forms.Label uxNameLabel;
		
		/// <summary>
		/// TextBox for the Status property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxStatus;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Status property.
		/// </summary>
		protected System.Windows.Forms.Label uxStatusLabel;
		
		/// <summary>
		/// TextBox for the Description property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDescription;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Description property.
		/// </summary>
		protected System.Windows.Forms.Label uxDescriptionLabel;
		
		/// <summary>
		/// DataTimePicker for the EffectiveDate property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxEffectiveDate;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the EffectiveDate property.
		/// </summary>
		protected System.Windows.Forms.Label uxEffectiveDateLabel;
		
		/// <summary>
		/// DataTimePicker for the CreatedDate property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxCreatedDate;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the CreatedDate property.
		/// </summary>
		protected System.Windows.Forms.Label uxCreatedDateLabel;
		
		/// <summary>
		/// DataTimePicker for the ModifiedDate property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxModifiedDate;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ModifiedDate property.
		/// </summary>
		protected System.Windows.Forms.Label uxModifiedDateLabel;
		
		/// <summary>
		/// ComboBox for the UserId property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxUserId;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the UserId property.
		/// </summary>
		protected System.Windows.Forms.Label uxUserIdLabel;
		
		/// <summary>
		/// TextBox for the FormType property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFormType;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the FormType property.
		/// </summary>
		protected System.Windows.Forms.Label uxFormTypeLabel;
		#endregion
		
		#region Main entity
		private Entities.DesignForm _DesignForm;
		/// <summary>
		/// Gets or sets the <see cref="Entities.DesignForm"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.DesignForm"/> instance.</value>
		public Entities.DesignForm DesignForm
		{
			get {return this._DesignForm;}
			set
			{
				this._DesignForm = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxFormId.DataBindings.Clear();
			this.uxFormId.DataBindings.Add("Text", this.uxBindingSource, "FormId", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxName.DataBindings.Clear();
			this.uxName.DataBindings.Add("Text", this.uxBindingSource, "Name", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxStatus.DataBindings.Clear();
			this.uxStatus.DataBindings.Add("Text", this.uxBindingSource, "Status", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDescription.DataBindings.Clear();
			this.uxDescription.DataBindings.Add("Text", this.uxBindingSource, "Description", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxEffectiveDate.DataBindings.Clear();
			this.uxEffectiveDate.DataBindings.Add("Value", this.uxBindingSource, "EffectiveDate", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxCreatedDate.DataBindings.Clear();
			this.uxCreatedDate.DataBindings.Add("Value", this.uxBindingSource, "CreatedDate", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxModifiedDate.DataBindings.Clear();
			this.uxModifiedDate.DataBindings.Add("Value", this.uxBindingSource, "ModifiedDate", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxUserId.DataBindings.Clear();
			this.uxUserId.DataBindings.Add("SelectedValue", this.uxBindingSource, "UserId", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFormType.DataBindings.Clear();
			this.uxFormType.DataBindings.Add("Text", this.uxBindingSource, "FormType", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="DesignFormEditControlBase"/> class.
		/// </summary>
		public DesignFormEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_DesignForm != null) _DesignForm.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxFormId = new System.Windows.Forms.TextBox();
			uxFormIdLabel = new System.Windows.Forms.Label();
			this.uxName = new System.Windows.Forms.TextBox();
			uxNameLabel = new System.Windows.Forms.Label();
			this.uxStatus = new System.Windows.Forms.TextBox();
			uxStatusLabel = new System.Windows.Forms.Label();
			this.uxDescription = new System.Windows.Forms.TextBox();
			uxDescriptionLabel = new System.Windows.Forms.Label();
			this.uxEffectiveDate = new System.Windows.Forms.DateTimePicker();
			uxEffectiveDateLabel = new System.Windows.Forms.Label();
			this.uxCreatedDate = new System.Windows.Forms.DateTimePicker();
			uxCreatedDateLabel = new System.Windows.Forms.Label();
			this.uxModifiedDate = new System.Windows.Forms.DateTimePicker();
			uxModifiedDateLabel = new System.Windows.Forms.Label();
			this.uxUserId = new System.Windows.Forms.ComboBox();
			uxUserIdLabel = new System.Windows.Forms.Label();
			this.uxFormType = new System.Windows.Forms.TextBox();
			uxFormTypeLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxFormIdLabel
			//
			this.uxFormIdLabel.Name = "uxFormIdLabel";
			this.uxFormIdLabel.Text = "Form Id:";
			this.uxFormIdLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxFormIdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormIdLabel);			
			//
			// uxFormId
			//
			this.uxFormId.Name = "uxFormId";
            this.uxFormId.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormId);
			this.uxFormId.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxFormId);
			//
			// uxNameLabel
			//
			this.uxNameLabel.Name = "uxNameLabel";
			this.uxNameLabel.Text = "Name:";
			this.uxNameLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxNameLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNameLabel);			
			//
			// uxName
			//
			this.uxName.Name = "uxName";
			this.uxName.Width = 250;
			this.uxName.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxName);
			this.uxName.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxName);
			//
			// uxStatusLabel
			//
			this.uxStatusLabel.Name = "uxStatusLabel";
			this.uxStatusLabel.Text = "Status:";
			this.uxStatusLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxStatusLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxStatusLabel);			
			//
			// uxStatus
			//
			this.uxStatus.Name = "uxStatus";
			//this.uxTableLayoutPanel.Controls.Add(this.uxStatus);
			this.uxStatus.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxStatus);
			//
			// uxDescriptionLabel
			//
			this.uxDescriptionLabel.Name = "uxDescriptionLabel";
			this.uxDescriptionLabel.Text = "Description:";
			this.uxDescriptionLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxDescriptionLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDescriptionLabel);			
			//
			// uxDescription
			//
			this.uxDescription.Name = "uxDescription";
			this.uxDescription.Width = 250;
			this.uxDescription.MaxLength = 1000;
			//this.uxTableLayoutPanel.Controls.Add(this.uxDescription);
			this.uxDescription.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxDescription);
			//
			// uxEffectiveDateLabel
			//
			this.uxEffectiveDateLabel.Name = "uxEffectiveDateLabel";
			this.uxEffectiveDateLabel.Text = "Effective Date:";
			this.uxEffectiveDateLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxEffectiveDateLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxEffectiveDateLabel);			
			//
			// uxEffectiveDate
			//
			this.uxEffectiveDate.Name = "uxEffectiveDate";
			//this.uxTableLayoutPanel.Controls.Add(this.uxEffectiveDate);
			this.uxEffectiveDate.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxEffectiveDate);
			//
			// uxCreatedDateLabel
			//
			this.uxCreatedDateLabel.Name = "uxCreatedDateLabel";
			this.uxCreatedDateLabel.Text = "Created Date:";
			this.uxCreatedDateLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxCreatedDateLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxCreatedDateLabel);			
			//
			// uxCreatedDate
			//
			this.uxCreatedDate.Name = "uxCreatedDate";
			//this.uxTableLayoutPanel.Controls.Add(this.uxCreatedDate);
			this.uxCreatedDate.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxCreatedDate);
			//
			// uxModifiedDateLabel
			//
			this.uxModifiedDateLabel.Name = "uxModifiedDateLabel";
			this.uxModifiedDateLabel.Text = "Modified Date:";
			this.uxModifiedDateLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxModifiedDateLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxModifiedDateLabel);			
			//
			// uxModifiedDate
			//
			this.uxModifiedDate.Name = "uxModifiedDate";
			//this.uxTableLayoutPanel.Controls.Add(this.uxModifiedDate);
			this.uxModifiedDate.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxModifiedDate);
			//
			// uxUserIdLabel
			//
			this.uxUserIdLabel.Name = "uxUserIdLabel";
			this.uxUserIdLabel.Text = "User Id:";
			this.uxUserIdLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxUserIdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxUserIdLabel);			
			//
			// uxUserId
			//
			this.uxUserId.Name = "uxUserId";
			//this.uxTableLayoutPanel.Controls.Add(this.uxUserId);
			this.uxUserId.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxUserId);
			//
			// uxFormTypeLabel
			//
			this.uxFormTypeLabel.Name = "uxFormTypeLabel";
			this.uxFormTypeLabel.Text = "Form Type:";
			this.uxFormTypeLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxFormTypeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormTypeLabel);			
			//
			// uxFormType
			//
			this.uxFormType.Name = "uxFormType";
			//this.uxTableLayoutPanel.Controls.Add(this.uxFormType);
			this.uxFormType.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxFormType);
			//
			// uxUserId
			//				
			this.uxUserId.DisplayMember = "UserName";	
			this.uxUserId.ValueMember = "UserId";	
			// 
			// DesignFormEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "DesignFormEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.User> _UserIdList;
		
		/// <summary>
		/// The ComboBox associated with the UserId property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.User> UserIdList
		{
			get {return _UserIdList;}
			set 
			{
				this._UserIdList = value;
				this.uxUserId.DataSource = null;
				this.uxUserId.DataSource = value;
			}
		}
		
		private bool _allowNewItemInUserIdList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the UserId property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInUserIdList
		{
			get { return _allowNewItemInUserIdList;}
			set
			{
				this._allowNewItemInUserIdList = value;
				this.uxUserId.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
        #region Field visibility

        /// <summary>
        /// Indicates if the controls associated with the uxFormId property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxFormIdVisible
        {
            get { return this.uxFormId.Visible; }
            set
            {
                this.uxFormIdLabel.Visible = value;
                this.uxFormId.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxFormId property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxFormIdEnabled
        {
            get { return this.uxFormId.Enabled; }
            set
            {
                this.uxFormId.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxName property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxNameVisible
        {
            get { return this.uxName.Visible; }
            set
            {
                this.uxNameLabel.Visible = value;
                this.uxName.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxName property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxNameEnabled
        {
            get { return this.uxName.Enabled; }
            set
            {
                this.uxName.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxStatus property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxStatusVisible
        {
            get { return this.uxStatus.Visible; }
            set
            {
                this.uxStatusLabel.Visible = value;
                this.uxStatus.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxStatus property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxStatusEnabled
        {
            get { return this.uxStatus.Enabled; }
            set
            {
                this.uxStatus.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxDescription property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxDescriptionVisible
        {
            get { return this.uxDescription.Visible; }
            set
            {
                this.uxDescriptionLabel.Visible = value;
                this.uxDescription.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxDescription property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxDescriptionEnabled
        {
            get { return this.uxDescription.Enabled; }
            set
            {
                this.uxDescription.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxEffectiveDate property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxEffectiveDateVisible
        {
            get { return this.uxEffectiveDate.Visible; }
            set
            {
                this.uxEffectiveDateLabel.Visible = value;
                this.uxEffectiveDate.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxEffectiveDate property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxEffectiveDateEnabled
        {
            get { return this.uxEffectiveDate.Enabled; }
            set
            {
                this.uxEffectiveDate.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxCreatedDate property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxCreatedDateVisible
        {
            get { return this.uxCreatedDate.Visible; }
            set
            {
                this.uxCreatedDateLabel.Visible = value;
                this.uxCreatedDate.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxCreatedDate property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxCreatedDateEnabled
        {
            get { return this.uxCreatedDate.Enabled; }
            set
            {
                this.uxCreatedDate.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxModifiedDate property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxModifiedDateVisible
        {
            get { return this.uxModifiedDate.Visible; }
            set
            {
                this.uxModifiedDateLabel.Visible = value;
                this.uxModifiedDate.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxModifiedDate property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxModifiedDateEnabled
        {
            get { return this.uxModifiedDate.Enabled; }
            set
            {
                this.uxModifiedDate.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxUserId property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxUserIdVisible
        {
            get { return this.uxUserId.Visible; }
            set
            {
                this.uxUserIdLabel.Visible = value;
                this.uxUserId.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxUserId property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxUserIdEnabled
        {
            get { return this.uxUserId.Enabled; }
            set
            {
                this.uxUserId.Enabled = value;
            }
        }
        /// <summary>
        /// Indicates if the controls associated with the uxFormType property should be visible.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Visible property for related controls.")]
        public bool uxFormTypeVisible
        {
            get { return this.uxFormType.Visible; }
            set
            {
                this.uxFormTypeLabel.Visible = value;
                this.uxFormType.Visible = value;
            }
        }

        /// <summary>
        /// Indicates if the controls associated with the uxFormType property should be enabled.
        /// </summary>
        [System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Set Enabled property for related controls.")]
        public bool uxFormTypeEnabled
        {
            get { return this.uxFormType.Enabled; }
            set
            {
                this.uxFormType.Enabled = value;
            }
        }

        #endregion

		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
